<!DOCTYPE html>
<html id="docs" lang="en" class="">
	<head>
	<meta charset="utf-8">
<title>kubectl - Kubernetes</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png" href="../../../../images/favicon.png">
<link rel="stylesheet" type="text/css" href="../../../../css/base_fonts.css">
<link rel="stylesheet" type="text/css" href="../../../../css/styles.css">
<link rel="stylesheet" type="text/css" href="https://code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css">
<link rel="stylesheet" type="text/css" href="../../../../css/callouts.css">
<link rel="stylesheet" type="text/css" href="../../../../css/custom-jekyll/tags.css">




<meta name="description" content="kubectl" />
<meta property="og:description" content="kubectl" />

<meta property="og:url" content="https://kubernetes.io/docs/reference/kubectl/kubectl/" />
<meta property="og:title" content="kubectl - Kubernetes" />

<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script
src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"
integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU="
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.js"></script>
<script src="../../../../js/script.js"></script>
<script src="../../../../js/custom-jekyll/tags.js"></script>


	</head>
	<body>
		<div id="cellophane" onclick="kub.toggleMenu()"></div>

<header>
    <a href="../../../../index.html" class="logo"></a>

    <div class="nav-buttons" data-auto-burger="primary">
        <ul class="global-nav">
            
            
            <li><a href="../../../home.1">Documentation</a></li>
            
            <li><a href="../../../../blog/index.html">Blog</a></li>
            
            <li><a href="../../../../partners/index.html">Partners</a></li>
            
            <li><a href="../../../../community/index.html">Community</a></li>
            
            <li><a href="../../../../case-studies/index.html">Case Studies</a></li>
            
            
             <li>
                <a href="../../../user-guide/kubectl/index.html#">
                    English <span class="ui-icon ui-icon-carat-1-s"></span>
                </a>
                <ul>
                
                    <li><a href="../../../../zh/index.html">中文 Chinese</a></li>
                
                    <li><a href="../../../../ko/index.html">한국어 Korean</a></li>
                
                </ul>
            </li>
         
            <li>
                <a href="../../../user-guide/kubectl/index.html#">
                    v1.11 <span class="ui-icon ui-icon-carat-1-s"></span>
                </a>
                <ul>
                
                    <li><a href="https://kubernetes.io">v1.12</a></li>
                
                    <li><a href="../../../../index.html">v1.11</a></li>
                
                    <li><a href="https://v1-10.docs.kubernetes.io">v1.10</a></li>
                
                    <li><a href="https://v1-9.docs.kubernetes.io">v1.9</a></li>
                
                </ul>
            </li>
        </ul>
        
        <a href="../../../tutorials/kubernetes-basics/index.html" class="button" id="tryKubernetes" data-auto-burger-exclude>Try Kubernetes</a>
        <button id="hamburger" onclick="kub.toggleMenu()" data-auto-burger-exclude><div></div></button>
    </div>

    <nav id="mainNav">
        <main data-auto-burger="primary">
        <div class="nav-box">
            <h3><a href="../../../tutorials/stateless-application/hello-minikube/index.html">Get Started</a></h3>
            <p>Ready to get your hands dirty? Build a simple Kubernetes cluster that runs "Hello World" for Node.js.</p>
        </div>
        <div class="nav-box">
            <h3><a href="../../../home.1">Documentation</a></h3>
            <p>Learn how to use Kubernetes with the use of walkthroughs, samples, and reference documentation. You can even <a href="../../../../editdocs/index.html" data-auto-burger-exclude>help contribute to the docs</a>!</p>
        </div>
        <div class="nav-box">
            <h3><a href="../../../../community/index.html">Community</a></h3>
            <p>If you need help, you can connect with other Kubernetes users and the Kubernetes authors, attend community events, and watch video presentations from around the web.</p>
        </div>
        <div class="nav-box">
            <h3><a href="../../../../blog/index.html">Blog</a></h3>
            <p>Read the latest news for Kubernetes and the containers space in general, and get technical how-tos hot off the presses.</p>
        </div>
        </main>
        <main data-auto-burger="primary">
        <div class="left">
            <h5 class="github-invite">Interested in hacking on the core Kubernetes code base?</h5>
            <a href="https://github.com/kubernetes/kubernetes" class="button" data-auto-burger-exclude>View On Github</a>
        </div>

        <div class="right">
            <h5 class="github-invite">Explore the community</h5>
            <div class="social">
                <a href="https://twitter.com/kubernetesio" class="twitter"><span>Twitter</span></a>
                <a href="https://github.com/kubernetes/kubernetes" class="github"><span>Github</span></a>
                <a href="http://slack.k8s.io/" class="slack"><span>Slack</span></a>
                <a href="http://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>Stack Overflow</span></a>
                <a href="https://discuss.kubernetes.io" class="mailing-list"><span>Forum</span></a>
                <a href="https://calendar.google.com/calendar/embed?src=nt2tcnbtbied3l6gi2h29slvc0%40group.calendar.google.com" class="calendar"><span>Events Calendar</span></a>
            </div>
        </div>
        <div class="clear" style="clear: both"></div>
        </main>
    </nav>
</header>

		
		
		<section id="hero" class="light-text no-sub">
			















<h1>Reference Documentation</h1>
<h5></h5>


<div id="vendorStrip" class="light-text">
	<ul>
		
		
		<li><a href="../../../home.1">DOCUMENTATION</a></li>
		
		
		<li><a href="../../../setup/index.html">SETUP</a></li>
		
		
		<li><a href="../../../concepts/index.html">CONCEPTS</a></li>
		
		
		<li><a href="../../../tasks/index.html">TASKS</a></li>
		
		
		<li><a href="../../../tutorials/index.html">TUTORIALS</a></li>
		
		
		<li><a href="../../../reference.1" class="YAH">REFERENCE</a></li>
		
	</ul>
	<div id="searchBox">
		<input type="text" id="search" placeholder="Search" onkeydown="if (event.keyCode==13) window.location.replace('/docs/search/?q=' + this.value)" autofocus="autofocus">
	</div>
</div>

		</section>
		
		
<section id="deprecationWarning">
  <main>
    <div class="content deprecation-warning">
      <h3>
        Documentation for Kubernetes v1.11 is no longer actively maintained. The version you are currently viewing is a static snapshot.
        For up-to-date documentation, see the <a href="https://kubernetes.io/docs/home/">latest</a> version.
      </h3>
    </div>
  </main>
</section>


		<section id="encyclopedia">
			
<div id="docsToc">
     <div class="pi-accordion">
    	
        
        
        
        
        
         
             
                 
             
         
             
                 
             
         
             
                 
             
         
             
                 
             
         
             
                 
             
         
             
                 
             
         
             
                 
                          
                          
                 
             
         
             
         
         
        
        <a class="item" data-title="Reference" href="../../../reference.1"></a>

	
	
		
		
<a class="item" data-title="Standardized Glossary" href="../../glossary/index.html"></a>

		
	
		
		
	<div class="item" data-title="Kubernetes Issues and Security">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="Kubernetes Issue Tracker" href="../../issues-security/issues/index.html"></a>

		
	
		
		
<a class="item" data-title="Kubernetes Security and Disclosure Information" href="../../issues-security/security/index.html"></a>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="Using the Kubernetes API">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="Kubernetes API Overview" href="../../using-api/api-overview/index.html"></a>

		
	
		
		
<a class="item" data-title="Kubernetes API Concepts" href="../../using-api/api-concepts/index.html"></a>

		
	
		
		
<a class="item" data-title="Client Libraries" href="../../using-api/client-libraries/index.html"></a>

		
	
		
		
<a class="item" data-title="Kubernetes Deprecation Policy" href="../../deprecation-policy.1"></a>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="Accessing the API">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="Controlling Access to the Kubernetes API" href="../../../admin/accessing-the-api.1"></a>

		
	
		
		
<a class="item" data-title="Authenticating" href="../../../admin/authentication.1"></a>

		
	
		
		
<a class="item" data-title="Authenticating with Bootstrap Tokens" href="../../../admin/bootstrap-tokens/index.html"></a>

		
	
		
		
<a class="item" data-title="Using Admission Controllers" href="../../access-authn-authz/admission-controllers"></a>

		
	
		
		
<a class="item" data-title="Dynamic Admission Control" href="../../../admin/extensible-admission-controllers.md"></a>

		
	
		
		
<a class="item" data-title="Managing Service Accounts" href="../../../admin/service-accounts-admin/index.html"></a>

		
	
		
		
<a class="item" data-title="Authorization Overview" href="../../../admin/authorization/index.html"></a>

		
	
		
		
<a class="item" data-title="Using RBAC Authorization" href="../../../admin/authorization/rbac.1"></a>

		
	
		
		
<a class="item" data-title="Using ABAC Authorization" href="../../access-authn-authz/abac/index.html"></a>

		
	
		
		
<a class="item" data-title="Using Node Authorization" href="../../../admin/authorization/node/index.html"></a>

		
	
		
		
<a class="item" data-title="Webhook Mode" href="../../../admin/authorization/webhook/index.html"></a>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="API Reference">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="Well-Known Labels, Annotations and Taints" href="../../kubernetes-api/labels-annotations-taints/index.html"></a>

		
	
		
		
<a class="item" data-title="v1.11" href="../../kubernetes-api/index.html"></a>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="Federation API">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="extensions/v1beta1 Model Definitions" href="../../federation/extensions/v1beta1/definitions.1"></a>

		
	
		
		
<a class="item" data-title="extensions/v1beta1 Operations" href="../../federation/extensions/v1beta1/operations/index.html"></a>

		
	
		
		
<a class="item" data-title="v1 Model Definitions" href="../../federation/v1/definitions.1"></a>

		
	
		
		
<a class="item" data-title="v1 Operations" href="../../federation/v1/operations/index.html"></a>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="Setup tools reference">
		<div class="container">
		
		
	
	
		
		
	<div class="item" data-title="Kubeadm">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="Overview of kubeadm" href="../../generated/kubeadm/index.html"></a>

		
	
		
		
<a class="item" data-title="kubeadm init" href="../../setup-tools/kubeadm/kubeadm-init.1"></a>

		
	
		
		
<a class="item" data-title="kubeadm join" href="../../setup-tools/kubeadm/kubeadm-join.1"></a>

		
	
		
		
<a class="item" data-title="kubeadm upgrade" href="../../setup-tools/kubeadm/kubeadm-upgrade.1"></a>

		
	
		
		
<a class="item" data-title="kubeadm config" href="../../setup-tools/kubeadm/kubeadm-config.1"></a>

		
	
		
		
<a class="item" data-title="kubeadm reset" href="../../setup-tools/kubeadm/kubeadm-reset.1"></a>

		
	
		
		
<a class="item" data-title="kubeadm token" href="../../setup-tools/kubeadm/kubeadm-token.1"></a>

		
	
		
		
<a class="item" data-title="kubeadm version" href="../../setup-tools/kubeadm/kubeadm-version.1"></a>

		
	
		
		
<a class="item" data-title="kubeadm alpha" href="../../setup-tools/kubeadm/kubeadm-alpha.1"></a>

		
	
		
		
<a class="item" data-title="Implementation details" href="../../setup-tools/kubeadm/implementation-details/index.html"></a>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="kubefed">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="kubefed" href="../../../admin/kubefed/index.html"></a>

		
	
		
		
<a class="item" data-title="kubefed options" href="../../setup-tools/kubefed/kubefed-options/index.html"></a>

		
	
		
		
<a class="item" data-title="kubefed init" href="../../../admin/kubefed_init/index.html"></a>

		
	
		
		
<a class="item" data-title="kubefed join" href="../../setup-tools/kubefed/kubefed-join/index.html"></a>

		
	
		
		
<a class="item" data-title="kubefed unjoin" href="../../../admin/kubefed_unjoin/index.html"></a>

		
	
		
		
<a class="item" data-title="kubefed version" href="../../setup-tools/kubefed/kubefed-version/index.html"></a>

		
	

		</div>
	</div>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="Command line tools reference">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="Feature Gates" href="../../command-line-tools-reference/feature-gates/index.html"></a>

		
	
		
		
<a class="item" data-title="federation-apiserver" href="../../../admin/federation-apiserver/index.html"></a>

		
	
		
		
<a class="item" data-title="federation-controller-manager" href="../../../admin/federation-controller-manager/index.html"></a>

		
	
		
		
<a class="item" data-title="Kubelet authentication/authorization" href="../../../admin/kubelet-authentication-authorization.1"></a>

		
	
		
		
<a class="item" data-title="TLS bootstrapping" href="../../command-line-tools-reference/kubelet-tls-bootstrapping/index.html"></a>

		
	
		
		
<a class="item" data-title="cloud-controller-manager" href="../../command-line-tools-reference/cloud-controller-manager/index.html"></a>

		
	
		
		
<a class="item" data-title="kube-apiserver" href="../../../admin/kube-apiserver.1"></a>

		
	
		
		
<a class="item" data-title="kube-controller-manager" href="../../generated/kube-controller-manager/index.html"></a>

		
	
		
		
<a class="item" data-title="kube-proxy" href="../../../admin/kube-proxy/index.html"></a>

		
	
		
		
<a class="item" data-title="kube-scheduler" href="../../../admin/kube-scheduler/index.html"></a>

		
	
		
		
<a class="item" data-title="kubelet" href="../../../admin/kubelet.1"></a>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="kubectl CLI">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="JSONPath Support" href="../jsonpath.1"></a>

		
	
		
		
<a class="item" data-title="Overview of kubectl" href="../../../user-guide/kubectl-overview.1"></a>

		
	
		
		
<a class="item" data-title="kubectl" href="../../../user-guide/kubectl/index.html"></a>

		
	
		
		
<a class="item" data-title="kubectl Cheat Sheet" href="../../../user-guide/kubectl-cheatsheet"></a>

		
	
		
		
<a class="item" data-title="kubectl Commands" href="../kubectl-cmds/index.html"></a>

		
	
		
		
<a class="item" data-title="kubectl Usage Conventions" href="../conventions/index.html"></a>

		
	
		
		
<a class="item" data-title="kubectl for Docker Users" href="../docker-cli-to-kubectl/index.html"></a>

		
	

		</div>
	</div>

		
	
		
		
<a class="item" data-title="Tools" href="../../tools/index.html"></a>

		
	






     </div> 
    <button class="push-menu-close-button" onclick="kub.toggleToc()"></button>
</div> 

			<div id="docsContent">
				
<p><a href="../../../editdocs#docs/reference/kubectl/kubectl.md" id="editPageButton">Edit This Page</a></p>



<nav id="TableOfContents">
<ul>
<li>
<ul>
<li><a href="../../../user-guide/kubectl/index.html#kubectl">kubectl</a>
<ul>
<li><a href="../../../user-guide/kubectl/index.html#synopsis">Synopsis</a></li>
<li><a href="../../../user-guide/kubectl/index.html#options">Options</a></li>
<li><a href="../../../user-guide/kubectl/index.html#see-also">SEE ALSO</a>
<ul>
<li>
<ul>
<li>
<ul>
<li><a href="../../../user-guide/kubectl/index.html#auto-generated-by-spf13-cobra-on-16-jun-2018">Auto generated by spf13/cobra on 16-Jun-2018</a></li>
</ul></li>
</ul></li>
</ul></li>
</ul></li>
</ul></li>
</ul>
</nav>



<h2 id="kubectl">kubectl</h2>

<p>kubectl controls the Kubernetes cluster manager</p>

<h3 id="synopsis">Synopsis</h3>

<p>kubectl controls the Kubernetes cluster manager.</p>

<p>Find more information at: <a href="https://kubernetes.io/docs/reference/kubectl/overview/" target="_blank">https://kubernetes.io/docs/reference/kubectl/overview/</a></p>

<pre><code>kubectl [flags]
</code></pre>

<h3 id="options">Options</h3>

<pre><code>      --alsologtostderr                  log to standard error as well as files
      --as string                        Username to impersonate for the operation
      --as-group stringArray             Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
      --cache-dir string                 Default HTTP cache directory (default &quot;/home/username/.kube/http-cache&quot;)
      --certificate-authority string     Path to a cert file for the certificate authority
      --client-certificate string        Path to a client certificate file for TLS
      --client-key string                Path to a client key file for TLS
      --cluster string                   The name of the kubeconfig cluster to use
      --context string                   The name of the kubeconfig context to use
  -h, --help                             help for kubectl
      --insecure-skip-tls-verify         If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
      --kubeconfig string                Path to the kubeconfig file to use for CLI requests.
      --log-backtrace-at traceLocation   when logging hits line file:N, emit a stack trace (default :0)
      --log-dir string                   If non-empty, write log files in this directory
      --logtostderr                      log to standard error instead of files
      --match-server-version             Require server version to match client version
  -n, --namespace string                 If present, the namespace scope for this CLI request
      --request-timeout string           The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default &quot;0&quot;)
  -s, --server string                    The address and port of the Kubernetes API server
      --stderrthreshold severity         logs at or above this threshold go to stderr (default 2)
      --token string                     Bearer token for authentication to the API server
      --user string                      The name of the kubeconfig user to use
  -v, --v Level                          log level for V logs
      --vmodule moduleSpec               comma-separated list of pattern=N settings for file-filtered logging
</code></pre>

<h3 id="see-also">SEE ALSO</h3>

<ul>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_alpha.md" target="_blank">kubectl alpha</a>  - Commands for features in alpha</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_annotate.md" target="_blank">kubectl annotate</a>    - Update the annotations on a resource</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_api-resources.md" target="_blank">kubectl api-resources</a>  - Print the supported API resources on the server</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_api-versions.md" target="_blank">kubectl api-versions</a>    - Print the supported API versions on the server, in the form of &ldquo;group/version&rdquo;</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_apply.md" target="_blank">kubectl apply</a>  - Apply a configuration to a resource by filename or stdin</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_attach.md" target="_blank">kubectl attach</a>    - Attach to a running container</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_auth.md" target="_blank">kubectl auth</a>    - Inspect authorization</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_autoscale.md" target="_blank">kubectl autoscale</a>  - Auto-scale a Deployment, ReplicaSet, or ReplicationController</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_certificate.md" target="_blank">kubectl certificate</a>  - Modify certificate resources.</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_cluster-info.md" target="_blank">kubectl cluster-info</a>    - Display cluster info</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_completion.md" target="_blank">kubectl completion</a>    - Output shell completion code for the specified shell (bash or zsh)</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_config.md" target="_blank">kubectl config</a>    - Modify kubeconfig files</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_convert.md" target="_blank">kubectl convert</a>  - Convert config files between different API versions</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_cordon.md" target="_blank">kubectl cordon</a>    - Mark node as unschedulable</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_cp.md" target="_blank">kubectl cp</a>    - Copy files and directories to and from containers.</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_create.md" target="_blank">kubectl create</a>    - Create a resource from a file or from stdin.</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_delete.md" target="_blank">kubectl delete</a>    - Delete resources by filenames, stdin, resources and names, or by resources and label selector</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_describe.md" target="_blank">kubectl describe</a>    - Show details of a specific resource or group of resources</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_drain.md" target="_blank">kubectl drain</a>  - Drain node in preparation for maintenance</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_edit.md" target="_blank">kubectl edit</a>    - Edit a resource on the server</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_exec.md" target="_blank">kubectl exec</a>    - Execute a command in a container</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_explain.md" target="_blank">kubectl explain</a>  - Documentation of resources</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_expose.md" target="_blank">kubectl expose</a>    - Take a replication controller, service, deployment or pod and expose it as a new Kubernetes Service</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_get.md" target="_blank">kubectl get</a>  - Display one or many resources</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_label.md" target="_blank">kubectl label</a>  - Update the labels on a resource</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_logs.md" target="_blank">kubectl logs</a>    - Print the logs for a container in a pod</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_options.md" target="_blank">kubectl options</a>  - Print the list of flags inherited by all commands</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_patch.md" target="_blank">kubectl patch</a>  - Update field(s) of a resource using strategic merge patch</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_plugin.md" target="_blank">kubectl plugin</a>    - Runs a command-line plugin</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_port-forward.md" target="_blank">kubectl port-forward</a>    - Forward one or more local ports to a pod</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_proxy.md" target="_blank">kubectl proxy</a>  - Run a proxy to the Kubernetes API server</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_replace.md" target="_blank">kubectl replace</a>  - Replace a resource by filename or stdin</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_rollout.md" target="_blank">kubectl rollout</a>  - Manage the rollout of a resource</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_run.md" target="_blank">kubectl run</a>  - Run a particular image on the cluster</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_scale.md" target="_blank">kubectl scale</a>  - Set a new size for a Deployment, ReplicaSet, Replication Controller, or Job</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_set.md" target="_blank">kubectl set</a>  - Set specific features on objects</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_taint.md" target="_blank">kubectl taint</a>  - Update the taints on one or more nodes</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_top.md" target="_blank">kubectl top</a>  - Display Resource (CPU/Memory/Storage) usage.</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_uncordon.md" target="_blank">kubectl uncordon</a>    - Mark node as schedulable</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_version.md" target="_blank">kubectl version</a>  - Print the client and server version information</li>
<li><a href="https://v1-11.docs.kubernetes.io/docs/reference/kubectl/kubectl/kubectl_wait.md" target="_blank">kubectl wait</a>    - Experimental: Wait for one condition on one or many resources</li>
</ul>

<h6 id="auto-generated-by-spf13-cobra-on-16-jun-2018">Auto generated by spf13/cobra on 16-Jun-2018</h6>



				<div class="issue-button-container">
					<p><a href="../../../user-guide/kubectl/index.html"><img src="https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/reference/kubectl/kubectl.md?pixel" alt="Analytics" /></a></p>
					
					
					<script type="text/javascript">
					PDRTJS_settings_8345992 = {
					"id" : "8345992",
					"unique_id" : "\/docs\/reference\/kubectl\/kubectl\/",
					"title" : "kubectl",
					"permalink" : "https:\/\/kubernetes.io\/docs\/reference\/kubectl\/kubectl\/"
					};
					(function(d,c,j){if(!document.getElementById(j)){var pd=d.createElement(c),s;pd.id=j;pd.src=('https:'==document.location.protocol)?'https://polldaddy.com/js/rating/rating.js':'http://i0.poll.fm/js/rating/rating.js';s=document.getElementsByTagName(c)[0];s.parentNode.insertBefore(pd,s);}}(document,'script','pd-rating-js'));
					</script>
					<a href="../../../user-guide/kubectl/index.html" onclick="window.open('https://github.com/kubernetes/website/issues/new?title=Issue%20with%20' +
					'k8s.io'+window.location.pathname)" class="button issue">Create an Issue</a>
					
					
					
					<a href="../../../editdocs#docs/reference/kubectl/kubectl.md" class="button issue">Edit this Page</a>
					
				</div>
			</div>
		</section>
		<footer>
    <main class="light-text">
        <nav>
            
            
            
            <a href="../../../home.1">Documentation</a>
            
            <a href="../../../../blog/index.html">Blog</a>
            
            <a href="../../../../partners/index.html">Partners</a>
            
            <a href="../../../../community/index.html">Community</a>
            
            <a href="../../../../case-studies/index.html">Case Studies</a>
            
        </nav>
        <div class="social">
            <div>
                <a href="https://twitter.com/kubernetesio" class="twitter"><span>twitter</span></a>
                <a href="https://github.com/kubernetes/kubernetes" class="github"><span>Github</span></a>
                <a href="http://slack.k8s.io/" class="slack"><span>Slack</span></a>
            </div>
            <div>
                <a href="http://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>Stack Overflow</span></a>
                <a href="https://discuss.kubernetes.io" class="mailing-list"><span>Forum</span></a>
                <a href="https://calendar.google.com/calendar/embed?src=nt2tcnbtbied3l6gi2h29slvc0%40group.calendar.google.com" class="calendar"><span>Events Calendar</span></a>
            </div>
            <div>
                <a href="../../../getting-started-guides/index.html" class="button">Get Kubernetes</a>
                <a href="https://git.k8s.io/community/contributors/guide" class="button">Contribute</a>
            </div>
        </div>
        <div id="miceType" class="center">
            &copy; 2018 The Kubernetes Authors | Documentation Distributed under <a href="https://git.k8s.io/website/LICENSE" class="light-text">CC BY 4.0</a>
        </div>
        <div id="miceType" class="center">
            Copyright &copy; 2018 The Linux Foundation&reg;. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our <a href="https://www.linuxfoundation.org/trademark-usage" class="light-text">Trademark Usage page</a>
        </div>
    </main>
</footer>

		<button class="flyout-button" onclick="kub.toggleToc()"></button>

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-36037335-10', 'auto');
ga('send', 'pageview');


(function () {
    window.addEventListener('DOMContentLoaded', init)

        
        function init() {
            window.removeEventListener('DOMContentLoaded', init)
                hideNav()
        }

    function hideNav(toc){
        if (!toc) toc = document.querySelector('#docsToc')
        if (!toc) return
            var container = toc.querySelector('.container')

                
                if (container) {
                    if (container.childElementCount === 0 || toc.querySelectorAll('a.item').length === 1) {
                        toc.style.display = 'none'
                            document.getElementById('docsContent').style.width = '100%'
                    }
                } else {
                    requestAnimationFrame(function () {
                        hideNav(toc)
                    })
                }
    }
})();
</script>



	</body>
</html>